import { ApiProperty } from '@nestjs/swagger'
import { OrderItemResVo } from './order-item-res.vo'

// 订单列表相应vo
export class OrderListResVo {

  @ApiProperty({ description: '订单号' })
  orderCode: string

  @ApiProperty({ description: '商品数量' })
  num: number

  @ApiProperty({ description: '商品总价' })
  totalPrice: number

  @ApiProperty({ description: '订单状态(0待付款 1取消 2待发货 3已发货 4运输中 5已完成)' })
  status: number

  @ApiProperty({ description: '下单时间' })
  createdTime: Date

  @ApiProperty({ description: '更新时间' })
  updatedTime: Date

  @ApiProperty({ description: '订单详情' })
  orderItems: OrderItemResVo[]
}